package com.bluefox.modules.quartz.task;

import com.bluefox.modules.monitor.service.VisitsService;
import org.springframework.stereotype.Component;

/**
 * @ClassName VisitsTask
 * @Description VisitsTask
 * @Author SunFeng
 * @Date 2020/2/28 15:27
 * @Version 1.0
 */
@Component
public class VisitsTask {
    private final VisitsService visitsService;

    public VisitsTask(VisitsService visitsService) {
        this.visitsService = visitsService;
    }

    public void run(){
        visitsService.save();
    }
}
